<?php /* Smarty version 2.6.18, created on 2009-11-19 00:18:00
         compiled from exporterShipmentTrackingReport.tpl */ ?>
<script type="text/javascript">	
	<?php echo '
		Calendar.setup({
	        inputField     :    "cal[dateFrom]",     // id of the input field
	        ifFormat       :    "%Y-%m-%d" ,    // format of the input field
	        displayArea    :    "dateFrom",
	        daFormat       :    "%Y-%m-%d",      // format of the display area
	        button         :    "f_trigger_c1",  // trigger for the calendar (button ID)
	        align          :    "Bl",           // alignment (defaults to "Bl")
	        singleClick    :    true,
			//onUpdate	   :    endDateChanged, //event to call after calendar is closed
	        weekNumbers    :    false,
	        zIndex		   :	2000
	    });
	'; ?>

	<?php echo '
		Calendar.setup({
	        inputField     :    "cal[dateTo]",     // id of the input field
	        ifFormat       :    "%Y-%m-%d" ,    // format of the input field
	        displayArea    :    "dateTo",
	        daFormat       :    "%Y-%m-%d",      // format of the display area
	        button         :    "f_trigger_c2",  // trigger for the calendar (button ID)
	        align          :    "Bl",           // alignment (defaults to "Bl")
	        singleClick    :    true,
			//onUpdate	   :    endDateChanged, //event to call after calendar is closed
	        weekNumbers    :    false,
	        zIndex		   :	2000
	    });
	'; ?>

</script>
<div id="main_content">
    	<h1>Exporter Tracking Shipment Report</h1>
			<div class="blue">
        	    <form action="" id="filterForm" >
        			<input type="hidden" name="user[page]" value="<?php echo $this->_tpl_vars['page']; ?>
">
        			<table>
						<tr>
							<td width="300px">
								<table>
									<tr>
        								<td nowrap><label for="filter">Country:</label></td>
        								<td><select name="user[country]">
        									<option value="">All Countries</option>
        									<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['country']):
?>
        										<option value="<?php echo $this->_tpl_vars['country']['country_code']; ?>
"><?php echo $this->_tpl_vars['country']['country']; ?>
</option>
        									<?php endforeach; endif; unset($_from); ?>
        								</select></td>
        							</tr>
        							<tr>
        								<td><label for="filter">Province:</label></td>
        								<td><select name="user[province]">
        									<option value="">All Provinces</option>
        									<?php $_from = $this->_tpl_vars['provinces']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['province']):
?>
        										<option value="<?php echo $this->_tpl_vars['province']['province']; ?>
"><?php echo $this->_tpl_vars['province']['province']; ?>
</option>
        									<?php endforeach; endif; unset($_from); ?>
        								</select></td>
        							</tr>
        							<tr>
        								<td><label for="filter">Exporter:</label></td>
        								<td><select name="user[exporter]">
        									<option value="">All Exporters</option>
        									<?php $_from = $this->_tpl_vars['exporters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['exporter']):
?>
        										<option value="<?php echo $this->_tpl_vars['exporter']['org_id']; ?>
"><?php echo $this->_tpl_vars['exporter']['name']; ?>
</option>
        									<?php endforeach; endif; unset($_from); ?>
        								</select></td>
        							</tr>
      								<tr>
        								<td style="width: 100px" nowrap><label for="filter">Record From:</label></td>
        								<td nowrap>
        									<input style="float:left" type="hidden" name="user[dateFrom]" id="cal[dateFrom]" value="<?php echo $this->_tpl_vars['dtFrom']; ?>
" size="10"/>
											<span id="dateFrom"  style="width:80px; display:block; float:left; height:15px; text-align:center;"><?php echo $this->_tpl_vars['dtFrom']; ?>
</span>
											<input style="float:left" type="image" src="/app/default/www/images/calendar.jpg" align="absmiddle" id="f_trigger_c1" style="cursor: pointer; border: 0px ;" title="Date selector"/>
											<input type="hidden" name="dateYui" value="cal[dateFrom]/dateFrom/f_trigger_c1">
									</tr>
									<tr>
										<td style="width: 100px" nowrap><label for="filter">Record To:</label></td>
										<td nowrap><input style="float:left" type="hidden" name="user[dateTo]" id="cal[dateTo]" value="<?php echo $this->_tpl_vars['dtTo']; ?>
" size="10"/>
											<span id="dateTo"  style="width:80px; display:block; float:left; height:15px; text-align:center;"><?php echo $this->_tpl_vars['dtTo']; ?>
</span>
											<input style="float:left" type="image" src="/app/default/www/images/calendar.jpg" align="absmiddle" id="f_trigger_c2" style="cursor: pointer; border: 0px ;" title="Date selector"/>
											<input type="hidden" name="dateYui" value="cal[dateTo]/dateTo/f_trigger_c2">
        								</td>
        							</tr>
        							<tr>
        								<td colspan="2" align="right">
        								<input type="button" value="Generate Report" onclick="doajaxAction('/account/exporterTrackingShipmentReport/reload/1',1,'result',document.getElementById('filterForm'))"/>
        								</td>				
        							</tr>
        							
								</table>
							</td>
						</tr>
					</table>
        	    </form>
        	</div>
       
            <div id="result">
            </div><!-- results -->
            
</div>
<script language="javascript">
<?php echo '
'; ?>

</script>